const runtime.maxAlloc

18 uses

	runtime (current package)
		arena.go#L541: 	if overflow || n < 0 || mem > maxAlloc {
		chan.go#L87: 	if overflow || mem > maxAlloc-hchanSize || size < 0 {
		malloc.go#L220: 	maxAlloc = (1 << heapAddrBits) - (1-_64bit)*1
		malloc.go#L2204: 	if overflow || mem > maxAlloc || n < 0 {
		map.go#L67: 	return maps.NewMap(t, uintptr(hint), m, maxAlloc)
		slice.go#L44: 		if overflow || tomem > maxAlloc || tolen < 0 {
		slice.go#L104: 	if overflow || mem > maxAlloc || len < 0 || len > cap {
		slice.go#L111: 		if overflow || mem > maxAlloc || len < 0 {
		slice.go#L215: 		overflow = uintptr(newcap) > maxAlloc
		slice.go#L221: 		overflow = uintptr(newcap) > maxAlloc/goarch.PtrSize
		slice.go#L234: 		overflow = uintptr(newcap) > (maxAlloc >> shift)
		slice.go#L259: 	if overflow || capmem > maxAlloc {
		slice.go#L433: 	if uintptr(len) > maxAlloc {
		string.go#L343: 	if uintptr(size) > maxAlloc/4 {
		string.go#L362: 	if n < 0 || uintptr(n) > maxAlloc {
		string.go#L496: 		p := (*[maxAlloc/2 - 1]byte)(unsafe.Pointer(s))
		string.go#L534: 	p := (*[maxAlloc/2/2 - 1]uint16)(unsafe.Pointer(s))
		string.go#L551: 	str := (*[maxAlloc/2/2 - 1]uint16)(unsafe.Pointer(strw))